package com.zrar.ak.gkpt.dao;

import com.zrar.ak.gkpt.model.bo.BusinessBidPurchaseBidBO;
import com.zrar.ak.gkpt.model.bo.BusinessBidPurchaseBidServerBO;
import com.zrar.ak.gkpt.model.bo.BusinessBidPurchaseBidSystemBO;
import com.zrar.ak.gkpt.model.bo.BusinessSchemeSystemInfoBO;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;
/**
 * @ClassName: IBusinessBidPurchaseBidSystemDao
 * @Description 招标采购-应用系统表Dao层
 * @Author HuangKeXin
 * @Time 2020/04/10
 */
@Repository("businessBidPurchaseBidSystemDao")
public interface IBusinessBidPurchaseBidSystemDao   extends Mapper<BusinessBidPurchaseBidSystemBO> {



        int deleteSystemlById(String id);



        int insertInfo(List<BusinessBidPurchaseBidSystemBO> businessBidSystemInfoBOList);

        int updateInfo(List<BusinessBidPurchaseBidSystemBO> systemList);

    int queryByType(Map map);

    List<BusinessBidPurchaseBidSystemBO> queryAllByBasicsId(String basicsId);


//@Select(("SELECT COUNT(1) AS TOTAL FROM BUSINESS_BID_PURCHASE_SYSTEM WHERE IS_DELETE='0' AND UNIT_ID=#{unitId}"))
//Integer queryExistCountByBusinessBidSystemUnitId(String unitId);
//
//        @Update(" UPDATE BUSINESS_BID_PURCHASE_SYSTEM SET IS_DELETE='1' WHERE IS_DELETE='0' AND UNIT_ID = #{unitId}")
//        void deleteBusinessBidSystemByUnitId(String unitId);

    }